package com.spring.dbproperties_demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
		BasicDataSource basicDataSource = (BasicDataSource) context.getBean("basicDataSource");
		String driverClassName = basicDataSource.getDriverClassName();
		String url = basicDataSource.getUrl();
		String username = basicDataSource.getUsername();
		String password = basicDataSource.getPassword();
	}
}
